const req = require.context('../../assets/images/topMenu', false, /\.png$/)
const requireAll = requireContext => requireContext.keys()

const re = /\.\/(.*)\.png/

const icons = requireAll(req).map(i => {
  return i.match(re)[1]
})
const result = icons.filter(item => {
  return item.indexOf('-') > 0
})
export default result
